{% extends "bugs/base.html" %}
{% block title %}Roadmap{% endblock %}
{% block content_title %}{% endblock %}
{% block stylesheet %}{% load media %}{% media_prefix %}css/bugs-progress.css{% endblock %}
{% block main %}
  <h2>{% block listtitle %}Road Map{% endblock %}</h2>
  <div id="tablecontent">
  {% if roadmap %}
  {% for rm in roadmap %}
  <div class="milestone">
    <h6>Milestone: <a href="{% url homesite.bugs.views.tasktags project.norm_name,rm.name %}">{{ rm.name }}</a></h6>
	<p class="milestoneinfo">
    <a href="{% url homesite.bugs.views.tasktags project.norm_name,rm.name %}?st=cl">Closed tasks:&nbsp;{{ rm.close }}</a>&nbsp;&nbsp;
    <a href="{% url homesite.bugs.views.tasktags project.norm_name,rm.name %}?st=op">Open tasks:&nbsp;{{ rm.open }}</a></p>
	<table class="progress"><tbody><tr>
	<td class="closed" style="width: {{ rm.prc_close }}%;"><a href="" title="{{ rm.close }} of {{ rm.sum }} tasks closed"></a></td>
    <td class="open" style="width: {{ rm.prc_open }}%;"><a href="" title="{{ rm.open }} of {{ rm.sum }} tasks active"></a></td>
	</tr></tbody></table>
    <p>{{ rm.prc_close }}%</p>
  </div>
  {% endfor %}
  {% else %}
  <p>No tags avalible</p>
  {% endif %}
  </div>
{% endblock %}

